package com.one.efaimaly.order.model.extra;

import com.one.common.common.order.AddMaterialItem;
import com.one.common.model.extra.BaseExtra;

import java.util.List;

/**
 * creator: zhulunjun
 * time:    2018/8/10
 * describe:
 */
public class AddMaterialListExtra extends BaseExtra {

    private List<AddMaterialItem> freeList;
    private List<AddMaterialItem> payList;
    private String orderId;
    private boolean isUpdate = false; // 如果是修改则不显示添加按钮

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public AddMaterialListExtra(List<AddMaterialItem> freeList, List<AddMaterialItem> payList, String orderId) {
        this.freeList = freeList;
        this.payList = payList;
        this.orderId = orderId;
    }

    public AddMaterialListExtra(List<AddMaterialItem> freeList, List<AddMaterialItem> payList, String orderId, boolean isUpdate) {
        this.freeList = freeList;
        this.payList = payList;
        this.orderId = orderId;
        this.isUpdate = isUpdate;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean update) {
        isUpdate = update;
    }

    public List<AddMaterialItem> getFreeList() {
        return freeList;
    }

    public void setFreeList(List<AddMaterialItem> freeList) {
        this.freeList = freeList;
    }

    public List<AddMaterialItem> getPayList() {
        return payList;
    }

    public void setPayList(List<AddMaterialItem> payList) {
        this.payList = payList;
    }
}
